<style>
ul,li,ol {margin:0; padding:0;} 
.recommend { padding: 0px 15px 5px 15px;margin: 10px 0px; }
.hd {padding-bottom: 1px;}
.hd-line h2 {color: #56abee;font-size: 16px;font-family: '\5FAE\8F6F\96C5\9ED1';}
.hd-line .mod-line-con { background: #e8e8e8;}
.hd-line .mod-line-con .mod-line { width: 67px;height: 1px; background: #56abee;overflow: hidden; }
.readlist {padding: 9px 0 10px 0;}
.readlist .lists ul { list-style:none; }
.readlist .lists li { list-style:none; padding-left: 1px; line-height:30px; font-size:14px; }
.readlist .lists li { text-overflow: ellipsis;  white-space: nowrap;  overflow: hidden; }

</style>
{if $detail['recommendation_source'] == 'rand'}
{if !empty($detail['pcate'])}
{php include_once IA_ROOT . '/addons/xc_article/model.php'}
{php $slide = xc_article_site_article_search($detail['pcate'], '', 5);}
{if count($slide) > 1}
<section class="recommend">
  <div class="hd hd-line">
      <h2>相关推荐</h2>
      <div class="mod-line-con"><div class="mod-line"></div></div>
  </div>
  <div class="readlist">
    <ul class="lists">
      {loop $slide['list'] $v}
      {if $v['id'] != $detail['id']}<li><a href="{php echo $v['url']}">{$v['title']}</a></li>{/if}
      {/loop}
    </ul>
  </div>
</section>
{/if}
{/if}
{else if $detail['recommendation_source'] == 'user'}
{if count($recommendation) > 0}
<section class="recommend">
  <div class="hd hd-line">
      <h2>相关推荐</h2>
      <div class="mod-line-con"><div class="mod-line"></div></div>
  </div>
  <div class="readlist">
    <ul class="lists">
      {loop $recommendation $v}
      {if !empty($v['title']) and !empty($v['url'])}
      <li><a href="{php echo $v['url']}"><span>{$v['title']}</span></a></li>
      {/if}
      {/loop}
    </ul>
  </div>
</section>
{/if}
{/if}
